<h1>Earned Revenue Report</h1>
<div class="form">
    <?php $form=$this->beginWidget('CActiveForm',array(
        'id'=>'earn-revenue-by-state-form',      
        'htmlOptions'=>array(
            'target'=>'_blank'  
        )
    ));?>
    <div class="row">
        <?php echo $form->labelEx($model,'startDay'); ?>
        <?php echo $form->dropDownList($model,'startDay',$model->getDayList()); ?>
        <?php echo $form->error($model,'startDay'); ?>    
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'startYear'); ?>
        <?php echo $form->dropDownList($model,'startYear',$model->getYearList()); ?>
        <?php echo $form->error($model,'startYear'); ?>        
    </div>
    <div class="row_buttons">
        <?php echo CHtml::submitButton('Get CSV',array(
            'name'=>'getCsv'
        )); ?>
    </div>

    <div class="row_buttons">
        <?php echo CHtml::submitButton('Get HTML',array(
            'name'=>'getHtml'
        )); ?>
    </div>
    <?php $this->endWidget(); ?>
</div>